package JSE_05.Demo09;

import java.io.FileInputStream;
import java.io.IOException;

public class Demo09Main {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("D:\\code\\JCode\\J_test00\\md_00\\src\\JSE_05\\abc.txt");
        int len=0;
        byte[] bytes=new byte[1024];
        while((len=fis.read(bytes))!=-1){
            System.out.println(len);// 21个字节
            System.out.println(new String(bytes,0,len));
        }
        fis.close();
    }
}
